@extends('home.pc.public.public')

@section('main')
    <div class="miya_sort">
        <div class="miya_sort_left">
            <div class="miya_template_left_box">
                <h3 class="miya_template_left_box_title">{{ $chunk['name'] }}</h3>
                <ul class="miya_template_left_box_ul">
                    @foreach($sorts[$chunk['path']] as $value)
                        <li><a href="{{ route('sort',['product',$value['id']]) }}">{{ $value['name'] }}</a></li>
                    @endforeach
                </ul>
            </div>
            @include('home.pc.public.left')
        </div>
        <div class="miya_sort_right frame_box">
            <h3 class="miya_sort_right_title">{{ $sort['name'] or $chunk['name'] }}</h3>
            @include('home.pc.public.frame')
            <ul class="miya_sort_right_product">
                @foreach($infos as $value)
                    <li class="miya_sort_right_product_li">
                        <a href="{{ route('info',['product',$value['id']]) }}">
                            <div class="miya_sort_right_product_li_img">
                                <img src="{{ $value['image'] }}" alt="{{ $value['name'] }}">
                            </div>
                            <h4>{{ $value['name'] }}</h4>
                        </a>
                    </li>
                @endforeach
                <div class="clearfix"></div>
            </ul>
            {{ $infos->links() }}
        </div>
        <div class="clearfix"></div>
    </div>
@endsection